/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Progrmas;

/**
 *
 * @author Luis
 */
public class covert2 {
/// convierte de una cadena a hexadecimal binario octal etc.

    public static void main(String args[]){
        String s="3FF";
        String s1;
        Double d;
        Integer i;
        Integer i2;

        i=Integer.parseInt(s,16);
        d=i.doubleValue();
        
         i2=d.intValue();
          s1=i2.toBinaryString(i);
         System.out.println(s1);

         Integer i3=Integer.parseInt(s1,2);
         System.out.println(i3);
         String s2=Integer.toOctalString(i);
         System.out.println(s2);
         Integer i4=Integer.parseInt(s1,8);
         System.out.println(i4);

        








    }
}
